Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(linux): isInContainer works for current docker versions #406

Closed

Conversation

benoitdm-oslandia
Copy link

Current docker version can use new cgroup version and the check done by isInContainer works only with cgroup v1.

This PR add other checks (as suggested here):

  • checks for dockerenv
  • checks for mountinfo

closes #363

@benoitdm-oslandia
Copy link
Author

switch source repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container check does not work
1 participant